package org.itboys.mobile.service.mongo.mobile;

import org.itboys.mobile.entity.mongo.OrderItem;
import org.itboys.mongodb.core.MongoDataSource;
import org.itboys.mongodb.service.BaseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created on 2017/10/31.
 * @author 朱坤涛
 */
@Service
public class OrderItemService extends BaseService<OrderItem,Long>{
    @Resource(name = "adminDS")
    private MongoDataSource ds;

    @Override
    protected MongoDataSource getMongoDataSource() {
        return ds;
    }

    @Override
    protected Class<OrderItem> getEntityClass() {
        return OrderItem.class;
    }
}
